<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>NGUI: Next-Gen UI kit: Localization Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI: Next-Gen UI kit
   &#160;<span id="projectnumber">3.7.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_localization.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_localization-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Localization Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_localization.html" title="Localization manager is able to parse localization information from text assets. Using it is simple: ...">Localization</a> manager is able to parse localization information from text assets. Using it is simple: text = Localization.Get(key), or just add a <a class="el" href="class_u_i_localize.html" title="Simple script that lets you localize a UIWidget. ">UILocalize</a> script to your labels. You can switch the language by using <a class="el" href="class_localization.html#aa7e7da951bef60a8d5959638234d4dc4" title="Name of the currently active language. ">Localization.language</a> = "French", for example. This will attempt to load the file called "French.txt" in the Resources folder, or a column "French" from the Localization.csv file in the Resources folder. If going down the TXT language file route, it's expected that the file is full of key = value pairs, like so:  
 <a href="class_localization.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9c4e05d57d02775f7ad25f0ad6ae24e4"><td class="memItemLeft" align="right" valign="top">delegate byte[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#a9c4e05d57d02775f7ad25f0ad6ae24e4">LoadFunction</a> (string path)</td></tr>
<tr class="separator:a9c4e05d57d02775f7ad25f0ad6ae24e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ac3d16b49fff007af095463d4f98b77c1"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#ac3d16b49fff007af095463d4f98b77c1">Load</a> (TextAsset asset)</td></tr>
<tr class="memdesc:ac3d16b49fff007af095463d4f98b77c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load the specified asset and activate the localization.  <a href="#ac3d16b49fff007af095463d4f98b77c1">More...</a><br /></td></tr>
<tr class="separator:ac3d16b49fff007af095463d4f98b77c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0dec29334f5e76e80e3a8a01bb1c4f9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#af0dec29334f5e76e80e3a8a01bb1c4f9">Set</a> (string languageName, byte[] bytes)</td></tr>
<tr class="memdesc:af0dec29334f5e76e80e3a8a01bb1c4f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the localization data directly.  <a href="#af0dec29334f5e76e80e3a8a01bb1c4f9">More...</a><br /></td></tr>
<tr class="separator:af0dec29334f5e76e80e3a8a01bb1c4f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaecbb4470be45c690f27724f48795ed7"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#aaecbb4470be45c690f27724f48795ed7">LoadCSV</a> (TextAsset asset)</td></tr>
<tr class="memdesc:aaecbb4470be45c690f27724f48795ed7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load the specified CSV file.  <a href="#aaecbb4470be45c690f27724f48795ed7">More...</a><br /></td></tr>
<tr class="separator:aaecbb4470be45c690f27724f48795ed7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a405186ee5157d2ef232ea471246cba21"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#a405186ee5157d2ef232ea471246cba21">LoadCSV</a> (byte[] bytes)</td></tr>
<tr class="memdesc:a405186ee5157d2ef232ea471246cba21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load the specified CSV file.  <a href="#a405186ee5157d2ef232ea471246cba21">More...</a><br /></td></tr>
<tr class="separator:a405186ee5157d2ef232ea471246cba21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a687db3395c264dc69e22f09af81639da"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#a687db3395c264dc69e22f09af81639da">Set</a> (string languageName, Dictionary&lt; string, string &gt; <a class="el" href="class_localization.html#aabbef7b057b954a53a50c31368ed11e6">dictionary</a>)</td></tr>
<tr class="memdesc:a687db3395c264dc69e22f09af81639da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load the specified asset and activate the localization.  <a href="#a687db3395c264dc69e22f09af81639da">More...</a><br /></td></tr>
<tr class="separator:a687db3395c264dc69e22f09af81639da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a576e51980abc5ffa213dd4d5635ba43a"><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#a576e51980abc5ffa213dd4d5635ba43a">Get</a> (string key)</td></tr>
<tr class="memdesc:a576e51980abc5ffa213dd4d5635ba43a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Localize the specified value.  <a href="#a576e51980abc5ffa213dd4d5635ba43a">More...</a><br /></td></tr>
<tr class="separator:a576e51980abc5ffa213dd4d5635ba43a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c48e98082d3ed81f2752814af9eb079"><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#a3c48e98082d3ed81f2752814af9eb079">Localize</a> (string key)</td></tr>
<tr class="separator:a3c48e98082d3ed81f2752814af9eb079"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3a526b32b94b3671dbf2610f0eecdfb"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#ab3a526b32b94b3671dbf2610f0eecdfb">Exists</a> (string key)</td></tr>
<tr class="memdesc:ab3a526b32b94b3671dbf2610f0eecdfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the specified key is present in the localization dictionary.  <a href="#ab3a526b32b94b3671dbf2610f0eecdfb">More...</a><br /></td></tr>
<tr class="separator:ab3a526b32b94b3671dbf2610f0eecdfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ad0a27bb1e42d5e445dc9467a506d2f2a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_localization.html#a9c4e05d57d02775f7ad25f0ad6ae24e4">LoadFunction</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#ad0a27bb1e42d5e445dc9467a506d2f2a">loadFunction</a></td></tr>
<tr class="memdesc:ad0a27bb1e42d5e445dc9467a506d2f2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Want to have <a class="el" href="class_localization.html" title="Localization manager is able to parse localization information from text assets. Using it is simple: ...">Localization</a> loading be custom instead of just Resources.Load? Set this function.  <a href="#ad0a27bb1e42d5e445dc9467a506d2f2a">More...</a><br /></td></tr>
<tr class="separator:ad0a27bb1e42d5e445dc9467a506d2f2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb38dd2a00438de2f14fcd2f9c7c0a17"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#aeb38dd2a00438de2f14fcd2f9c7c0a17">localizationHasBeenSet</a> = false</td></tr>
<tr class="memdesc:aeb38dd2a00438de2f14fcd2f9c7c0a17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the localization dictionary has been loaded.  <a href="#aeb38dd2a00438de2f14fcd2f9c7c0a17">More...</a><br /></td></tr>
<tr class="separator:aeb38dd2a00438de2f14fcd2f9c7c0a17"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:aabbef7b057b954a53a50c31368ed11e6"><td class="memItemLeft" align="right" valign="top">static Dictionary&lt; string, <br class="typebreak" />
string[]&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#aabbef7b057b954a53a50c31368ed11e6">dictionary</a><code> [get, set]</code></td></tr>
<tr class="memdesc:aabbef7b057b954a53a50c31368ed11e6"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_localization.html" title="Localization manager is able to parse localization information from text assets. Using it is simple: ...">Localization</a> dictionary. Dictionary key is the localization key. Dictionary value is the list of localized values (columns in the CSV file). Be very careful editing this via code, and be sure to set the "KEY" to the list of languages.  <a href="#aabbef7b057b954a53a50c31368ed11e6">More...</a><br /></td></tr>
<tr class="separator:aabbef7b057b954a53a50c31368ed11e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26cf20c70fdaf8f6d50e8cd5195f5729"><td class="memItemLeft" align="right" valign="top">static string[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#a26cf20c70fdaf8f6d50e8cd5195f5729">knownLanguages</a><code> [get]</code></td></tr>
<tr class="memdesc:a26cf20c70fdaf8f6d50e8cd5195f5729"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of loaded languages. Available if a single Localization.csv file was used.  <a href="#a26cf20c70fdaf8f6d50e8cd5195f5729">More...</a><br /></td></tr>
<tr class="separator:a26cf20c70fdaf8f6d50e8cd5195f5729"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7e7da951bef60a8d5959638234d4dc4"><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#aa7e7da951bef60a8d5959638234d4dc4">language</a><code> [get, set]</code></td></tr>
<tr class="memdesc:aa7e7da951bef60a8d5959638234d4dc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of the currently active language.  <a href="#aa7e7da951bef60a8d5959638234d4dc4">More...</a><br /></td></tr>
<tr class="separator:aa7e7da951bef60a8d5959638234d4dc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac838ce3932aa25483aa77c7fb6abc9ea"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_localization.html#ac838ce3932aa25483aa77c7fb6abc9ea">isActive</a><code> [get]</code></td></tr>
<tr class="separator:ac838ce3932aa25483aa77c7fb6abc9ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_localization.html" title="Localization manager is able to parse localization information from text assets. Using it is simple: ...">Localization</a> manager is able to parse localization information from text assets. Using it is simple: text = Localization.Get(key), or just add a <a class="el" href="class_u_i_localize.html" title="Simple script that lets you localize a UIWidget. ">UILocalize</a> script to your labels. You can switch the language by using <a class="el" href="class_localization.html#aa7e7da951bef60a8d5959638234d4dc4" title="Name of the currently active language. ">Localization.language</a> = "French", for example. This will attempt to load the file called "French.txt" in the Resources folder, or a column "French" from the Localization.csv file in the Resources folder. If going down the TXT language file route, it's expected that the file is full of key = value pairs, like so: </p>
<p>LABEL1 = Hello LABEL2 = Music Info = <a class="el" href="class_localization.html" title="Localization manager is able to parse localization information from text assets. Using it is simple: ...">Localization</a> Example</p>
<p>In the case of the CSV file, the first column should be the "KEY". Other columns should be your localized text values, such as "French" for the first row:</p>
<p>KEY,English,French LABEL1,Hello,Bonjour LABEL2,Music,Musique Info,"Localization Example","Par exemple la localisation" </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab3a526b32b94b3671dbf2610f0eecdfb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Localization.Exists </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns whether the specified key is present in the localization dictionary. </p>

</div>
</div>
<a class="anchor" id="a576e51980abc5ffa213dd4d5635ba43a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static string Localization.Get </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Localize the specified value. </p>

</div>
</div>
<a class="anchor" id="ac3d16b49fff007af095463d4f98b77c1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Localization.Load </td>
          <td>(</td>
          <td class="paramtype">TextAsset&#160;</td>
          <td class="paramname"><em>asset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Load the specified asset and activate the localization. </p>

</div>
</div>
<a class="anchor" id="aaecbb4470be45c690f27724f48795ed7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Localization.LoadCSV </td>
          <td>(</td>
          <td class="paramtype">TextAsset&#160;</td>
          <td class="paramname"><em>asset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Load the specified CSV file. </p>

</div>
</div>
<a class="anchor" id="a405186ee5157d2ef232ea471246cba21"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Localization.LoadCSV </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>bytes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Load the specified CSV file. </p>

</div>
</div>
<a class="anchor" id="a9c4e05d57d02775f7ad25f0ad6ae24e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">delegate byte [] Localization.LoadFunction </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a3c48e98082d3ed81f2752814af9eb079"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static string Localization.Localize </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="af0dec29334f5e76e80e3a8a01bb1c4f9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Localization.Set </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>languageName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>bytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the localization data directly. </p>

</div>
</div>
<a class="anchor" id="a687db3395c264dc69e22f09af81639da"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Localization.Set </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>languageName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Dictionary&lt; string, string &gt;&#160;</td>
          <td class="paramname"><em>dictionary</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Load the specified asset and activate the localization. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ad0a27bb1e42d5e445dc9467a506d2f2a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_localization.html#a9c4e05d57d02775f7ad25f0ad6ae24e4">LoadFunction</a> Localization.loadFunction</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Want to have <a class="el" href="class_localization.html" title="Localization manager is able to parse localization information from text assets. Using it is simple: ...">Localization</a> loading be custom instead of just Resources.Load? Set this function. </p>

</div>
</div>
<a class="anchor" id="aeb38dd2a00438de2f14fcd2f9c7c0a17"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Localization.localizationHasBeenSet = false</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the localization dictionary has been loaded. </p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="aabbef7b057b954a53a50c31368ed11e6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Dictionary&lt;string, string[]&gt; Localization.dictionary</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="class_localization.html" title="Localization manager is able to parse localization information from text assets. Using it is simple: ...">Localization</a> dictionary. Dictionary key is the localization key. Dictionary value is the list of localized values (columns in the CSV file). Be very careful editing this via code, and be sure to set the "KEY" to the list of languages. </p>

</div>
</div>
<a class="anchor" id="ac838ce3932aa25483aa77c7fb6abc9ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Localization.isActive</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a26cf20c70fdaf8f6d50e8cd5195f5729"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string [] Localization.knownLanguages</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>List of loaded languages. Available if a single Localization.csv file was used. </p>

</div>
</div>
<a class="anchor" id="aa7e7da951bef60a8d5959638234d4dc4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string Localization.language</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Name of the currently active language. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/NGUI/Assets/NGUI/Scripts/Internal/<a class="el" href="_localization_8cs.html">Localization.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_localization.html">Localization</a></li>
    <li class="footer">Generated on Sat Sep 13 2014 05:29:17 for NGUI: Next-Gen UI kit by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
